package com.qingzhuge.sms.entity;

import com.qingzhuge.entity.BaseModel;
import com.qingzhuge.sms.ESmsType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author : zero.xiao
 * @description : 短信平台配置
 * @date : 2018/9/19 0019 上午 10:10
 * @modified :
 * @since :
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "sys_config_sms")
public class SysSms  extends BaseModel {
    private static final long serialVersionUID = 7172266732922977344L;
    /**短信平台，默认支持阿里云*/
    private ESmsType type = ESmsType.aliyun;
    /***/
    private String accessKeyId;
    /***/
    private String accessKeySecret;
    /**签名，发送在短信中的签名*/
    private String signName;
    /**用户注册短信模板*/
    private String registerTemplateCode;
    /**用户登录短信模板*/
    private String loginTemplateCode;
    /**用户重置密码短信模板*/
    private String resetPwdTemplateCode;
    /**用户绑定短信模板*/
    private String bindingTemplateCode;
    /**用户支付短信模板*/
    private String payTemplateCode;
    /**发送短信后等待时间，为空时默认60s*/
    private Integer waitTime;
    @Column(name = "is_enable")
    private Boolean enable;
}
